package com.learn.services.impl;

import com.learn.mapper.ArticleMapper;
import com.learn.pojo.Article;
import com.learn.services.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {

    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public List<Article> selectAllArticle() {
        return articleMapper.selectAll();
    }
}
